package cn.edu.zbu.pojo;

import java.util.Date;

public class Car {
    private int id;
    private String name;
    private String color;
    private String speed;
    private Date birthday;

    private String price;

    public Car() {
    }

    public Car(int id, String name, String color, String speed, Date birthday, String price) {
        this.id = id;
        this.name = name;
        this.color = color;
        this.speed = speed;
        this.birthday = birthday;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", speed='" + speed + '\'' +
                ", birthday=" + birthday +
                ", price='" + price + '\'' +
                '}';
    }
}
